/*
 * JSInputMessage.java
 *
 */

package net.kernub.kebcore.client;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.JsArrayString;

public class JSInputMessage extends JavaScriptObject
{
	protected JSInputMessage() {}

	public final native boolean hasLogs() /*-{ return (this.log==null) ? false : true; }-*/;
	public final native JsArray<JSLog> getLogs() /*-{ return this.log; }-*/;

	public final native boolean hasObject() /*-{ return (this.ret!=null) ? true : false; }-*/;
	public final native JavaScriptObject getObject() /*-{ return this.ret; }-*/;

	public final static native JSInputMessage fromJSON( String json ) /*-{ return eval(json)[0]; }-*/;
};
